package com.ycMc.utils;

/**
 * Created by libo2 on 2017/8/24.
 */
public class BaseUtils {

    //public final String downloadUrl = "http://116.62.44.77/ycMcServer/excelData/";

    public final static String downloadUrl = "http://localhost:8080/excelData/";

    public static String generateProductId(){
        return "PID"+"01"+System.currentTimeMillis()+RandomUtil.randomCharAndNum(4);
    }

    public static String generateOrderId(){
        return "OID"+"02"+System.currentTimeMillis()+RandomUtil.randomCharAndNum(4);
    }

    public static String generateMoneyRecordId(){
        return "MRID"+"03"+System.currentTimeMillis()+RandomUtil.randomCharAndNum(4);
    }

    public static String generateUserId(){
        return "MC"+""+(System.currentTimeMillis()+"").substring(5)+RandomUtil.randomCharAndNum(2);
    }

    public static String generateOrderDetailId(){
        return "ODID"+"05"+System.currentTimeMillis()+RandomUtil.randomCharAndNum(4);
    }
}
